package org.jks.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.jks.config.Config;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/sysMgr")
public class SystemManagerController {
	@RequestMapping("/")
	public ModelAndView index(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/index", model);
	}
	
	@RequestMapping("/index")
	public ModelAndView index1(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/index", model);
	}
	
	@RequestMapping("/privilege_mgr")
	public ModelAndView privilegeMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/privilege_mgr", model);
	}
	
	@RequestMapping("/role_mgr")
	public ModelAndView roleMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/role_mgr", model);
	}
	
	@RequestMapping("/jixiao_mgr")
	public ModelAndView jixoaMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/jixiao_mgr", model);
	}
	

	@RequestMapping("/user_mgr")
	public ModelAndView userMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/user_mgr", model);
	}
	
	@RequestMapping("/user_add")
	public ModelAndView userAdd(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/user_add", model);
	}
	
	@RequestMapping("/sys_setting")
	public ModelAndView setting(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/sys_setting", model);
	}
	
	
	@RequestMapping("/dpt_mgr")
	public ModelAndView dptMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/dpt_mgr", model);
	}
	
	@RequestMapping("/flight_mgr")
	public ModelAndView flightMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/flight_mgr", model);
	}
	
	@RequestMapping("/position_mgr")
	public ModelAndView positionMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/position_mgr", model);
	}
	
	@RequestMapping("/education_mgr")
	public ModelAndView educationMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/education_mgr", model);
	}
	
	@RequestMapping("/attach_group_mgr")
	public ModelAndView attachGroupMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/attach_group_mgr", model);
	}
	
	@RequestMapping("/attach_type_mgr")
	public ModelAndView attachTypeMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/attach_type_mgr", model);
	}
	
	@RequestMapping("/add_attach_type")
	public ModelAndView AddAttachType(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/add_attach_type", model);
	}
	
	@RequestMapping("/political_status_mgr")
	public ModelAndView politicalStatusMgr(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/political_status_mgr", model);
	}
	
	@RequestMapping("/data_security")
	public ModelAndView dataSecurity(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/data_security", model);
	}
	
	@RequestMapping("/message_sys")
	public ModelAndView messageSys(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/message_sys", model);
	}
	
	@RequestMapping("/add_msg")
	public ModelAndView addMsg(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/add_msg", model);
	}
	
	@RequestMapping("/jixiao_kaohe")
	public ModelAndView jixiaoKaohe(HttpServletRequest request, HttpServletResponse response, HttpSession session, Map<String,Object> model) {
		Config.init(request, response, session, model);
		return new ModelAndView("sysMgr/jixiao_kaohe", model);
	}
}
